//
//  ViewEngine.h
//  MeicaiCrm
//
//  Created by zhou jianbang on 2019/4/16.
//  Copyright © 2019 meicai. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Header.h"

NS_ASSUME_NONNULL_BEGIN

/**
 * 弹框驱动类
 */
@interface ViewEngine : NSObject

/**
 * 展示alert
 */
+(void)alertShowWithBlock:(ActionBlock)block andAlertDict:(NSDictionary *)alertDict;

/**
 * 关闭alert
 */
+(void)alertHide;

/**
 * 弹出来toast
 */
+(void)toastShowWithBlock:(ActionBlock)block andToastDict:(NSDictionary *)toastDict;

/**
 * 弹出sheet
 */
+(void)sheetShowWithBlock:(ActionBlock)block andSheetDict:(NSDictionary *)sheetDict;

/**
 * 隐藏sheet
 */
+(void)sheetViewHide;

/**
 * 弹出loading
 */
+(void)loadingShow:(NSDictionary *)loadingDict;

/**
 * 隐藏loading
 */
+(void)loadingHide;


@property (nonatomic, strong) ActionBlock block;
@property (nonatomic, strong) ActionBlock toastBlock;
@property (nonatomic, strong) ActionBlock sheetBlock;

@end

NS_ASSUME_NONNULL_END
